<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="count" value="${fn:length(taskResult.result)}" />
{
	total: ${taskResult.totalCount},
	rows: [
		<c:forEach var="rp" items="${taskResult.result}" varStatus="status">
		<c:set var="task" value="${rp.task}" />
		<c:set var="roomProject" value="${rp.roomProject}" />
		{
			id: "${task.id}",
			processInstanceId: "${task.processInstance.id}",
			bizNumber: "${roomProject.bizNumber}",
			name: "${roomProject.name}",
			netType: "${roomProject.netType}",
			resolveContent: "${roomProject.resolveContent}",
			emergencyLevel: "${roomProject.emergencyLevel}",
			createTime: "<fmt:formatDate value="${roomProject.createTime}" type="both" pattern="yyyy-MM-dd HH:mm" />",
			activationTimeLong: ${task.activationTime.time},
			status: "${task.status}",
			activationTime: "<fmt:formatDate value="${task.activationTime}" type="both" pattern="yyyy-MM-dd HH:mm" />",
			closeTime: "<fmt:formatDate value="${task.closeTime}" type="both" pattern="yyyy-MM-dd HH:mm" />",
			action: "${task.action}"
		}
		<c:if test="${status.index < count - 1}">,</c:if>
		</c:forEach>
	]
}